package com.threeigtache.adpter;

import android.widget.TextView;

import com.threeigtache.been.NoticeBeen;
import com.threeigtache.threeigproject.R;

import java.util.List;


/**
 * Created by 赵航 on 2018/2/27.
 */

public class EmailRecycleAdapter extends BasicRecycleViewAdapter<NoticeBeen.ListBean> {

    private String                    data;
    private List<NoticeBeen.ListBean> mList;
    public EmailRecycleAdapter(String getData, List<NoticeBeen.ListBean> showItems) {
        super(showItems);
        this.data = getData;
        this.mList = showItems;
    }


    @Override
    public void convert(BasicViewholder holder, NoticeBeen.ListBean itm, int position) {

        TextView title = (TextView) holder.getView(R.id.title);
        TextView data = (TextView) holder.getView(R.id.data);
        TextView content = (TextView) holder.getView(R.id.content);

        title.setText(itm.getTitle());
        data.setText(itm.getDate());
        content.setText(itm.getCon());

    }

    @Override
    public int getSuccessFullView(int viewType) {

        return R.layout.notice_layout;
    }
}
